{extend name='common@layout/base' /}
{block name='content'}
<link href="/old/shop/templates/new20160622/css/layout.css" rel="stylesheet" type="text/css">
{if(!empty($topic))}
{foreach ($topic['image'] as $key => $val)}
{if(!empty($val))}
<div style="text-align:center; background:{if(!empty($topic['background'][$key]))}{$topic['background'][$key]}{else /}#ffffff{/if} ">
  	<a {if(!empty($topic['detail'][$key]['block']['link']))}  href="{$topic['detail'][$key]['block']['link']}" target="_blank" {/if}><img height="{$topic['detail'][$key]['block']['height']}" width="{$topic['detail'][$key]['block']['width']}" src="{:img_url($topic['image'][$key])}" title="{$topic['detail'][$key]['block']['intro']}"></a>
  </div>
{/if}
{/foreach}
{/if}
{/block}